<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8" session="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="zug" tagdir="/WEB-INF/tags"%>
<%@ include file="/page/include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加资源</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta content="zh-cn" http-equiv="content-language" />
<meta content="" name="copyright" />
<link rel="stylesheet" type="text/css" href="css/style.css" />

<!--[if lte IE 6]> 
<script type="text/javascript" src="js/PNG.js"></script> 
<script> 
PNG.fix('*'); 
</script> 
<![endif]-->
<link rel="stylesheet" type="text/css" href="${rootPath}/statics/jslib/ztree/zTreeStyle.css" />
<script type="text/javascript" src="${rootPath}/statics/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${rootPath}/statics/js/jquery.select-1.3.6.js"></script>
<script type="text/javascript" src="${rootPath }/statics/jslib/ztree/jquery.ztree.all-3.5.min.js"></script>
<script>
$(function () {
	$(".leftbar dl dt h3").click(function(){
			$(this).next("ul").slideToggle("slow");
			$(this).toggleClass("current");
		});
	$(".select11").sSelect();
	$('#btn_div,.div_close').click(function(){
	$('#zy_box').toggle();
	});
		
});

</script>
<style>

</style>

</head>
<body>
<div class="msg_tip res_divk" style="display:none">
	<p>
    	<i></i>
        <span class="tsContext">添加成功</span>
    </p>
</div>
<div class="overlay" id="zy_box" style="display:none">
<div class="msg_box"  >
	<div class="hd">
    	<h3>添加资源</h3>
        <span>
        	<a href="javascript:void(0)" class="div_close">&nbsp;</a>
        </span>
    </div>
    <div class="bd">
    	<p>确认添加该资源？</p>
    </div>
    <div class="bottom">
    	<p>
        	<input type="button" class="inputbtn1" id="save_btn" value="确定" /><input type="button" class="inputbtn1 div_close" value="取消" />
        </p>
    </div>
</div>
</div>
<div class="wrap">
	<div class="frame_body">
		<div class="right_body">
        	<div class="kc_wrap">
				<div class="title">
					<h1>添加资源</h1>
				</div>
				<div class="mybox111">
					<div class="add_form">
					<form id="resourceForm">
						<dl>
                        	<dt>
								<strong><em></em>所属系统：</strong>
								<div class="txt1 ssgj">
									<select class="select11 required" id="systemId" name="systemId">
                                    	<option value="">请选择</option>
                                        <c:forEach items="${systemList }" var="system">
                                        <option value="${system.id }">${system.systemName }</option>
                                        </c:forEach>
                                    </select>
								</div>
							</dt>
							<dt>
								<strong><em></em>所属模板：</strong>
								<div class="txt1">
									<div class="title3" >
									<dl class="" id="ztreedl" > 
										<b style="margin-left:0;width:138px;">
											<span id="parentName">请选择分类</span> <i></i><input type="hidden" class="required" id="parentId" name="parentId"/>
										</b>
										<div class="drop3" style="left:0">
											<div class="" >
												<ul id="zTree" class="ztree" style="height:200px; overflow:auto;">
                                                	
                                                </ul>
											</div>
										</div>
									</dl>
				  				</div>

								</div>
							</dt>
							<dt>
								<strong><em></em>资源名称：</strong>
								<div class="txt1">
									<input type="text" id="resourceName" name="resourceName" class="inputstyle3 required" value="" />
								</div>
							</dt>
                            <dt>
								<strong><em></em>资源类型：</strong>
								<div class="txt1 ssgj">
									<select class="select11 required" id="resourceType" name="resourceType">
                                    	<option selected="selected" value="操作命令">操作命令</option>
                                    	<option value="操作页">操作页</option>
                                    </select>
								</div>
							</dt>
                             <dt>
								<strong><em></em>排序：</strong>
								<div class="txt1 ssgj">
									<input type="text" class="inputstyle3 required digits" id="sortNo" name="sortNo" value="" />
								</div>
							</dt>
                            <dt>
								<strong>状态：</strong>
								<div class="txt1 ssgj">
									<select class="select11" id="status" name="status">
                                    	<option value="0">启用</option>
                                        <option value="1">停用</option>
                                    </select>
								</div>
							</dt>
							<dt>
								<strong><em></em>权限命令：</strong>
								<div class="txt1 ssgj">
									<input type="text" class="inputstyle12" value="" id="permission" name="permission" />
								</div>
							</dt>
                            <dt>
								<strong><em></em>资源路径：</strong>
								<div class="txt1 ssgj">
									<input type="text" class="inputstyle12 url" value="" id="url" name="url" />
								</div>
							</dt>
                            <dt>
								<strong><em></em>图标样式：</strong>
								<div class="txt1 ssgj">
									<input type="text" class="inputstyle12" value="" id="iconClass" name="iconClass" />
								</div>
							</dt>
                            
                            <dt>
								<strong>资源描述：</strong>
								<div class="txt1">
									<div class="textarea1">
                                    	<textarea id="resourceIntro" name="resourceIntro" maxlength="50"></textarea>
                                    </div>
                                    <span style="vertical-align:bottom">50字以内</span>
								</div>
							</dt>
							<dt>
								<strong>&nbsp;</strong>
								<div class="txt1">
									<p>
										<input type="button" class="inputbtn4" id="getList" value="返回"><input type="button" class="inputbtn1" id="btn_div" value="保存">
									</p>
								</div>
							</dt>
						</dl>
					</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script type="text/javascript" src="${rootPath}/statics/js/jquery.validate.js" charset="utf-8"></script>
<script type="text/javascript" src="${rootPath}/js/auth/resource/resource.js" charset="utf-8"></script>
</html>